import Vue from 'vue'
import VueRouter from 'vue-router'
import StuView from "@/views/element/StuView.vue";
import ScoreView from "@/views/element/ScoreView.vue";

Vue.use(VueRouter)

const routes = [
  {
    path: '/info',
    name: 'info',
    component: StuView
  },
  {
    path: '/',
    redirect: 'info',
  },
  {
    path: '/score',
    name: 'score',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: ScoreView
  }
]

const router = new VueRouter({
  routes
})

export default router
